package org.msfj.common.submail;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by program on 2016/11/24.
 */
public class SubMailMessages implements Serializable {
    List<SubMailMessage> list = new ArrayList<>();

    public SubMailMessages(){

    }


    public SubMailMessages(SubMailMessage... subMailMessage) {
        for (SubMailMessage mailMessage : subMailMessage) {
            list.add(mailMessage);
        }
    }

    public SubMailMessages(List<SubMailMessage> messageList) {
        this.list = messageList;
    }

    public void setList(List<SubMailMessage> list) {
        this.list = list;
    }

    public List<SubMailMessage> getList() {
        return list;
    }
}
